﻿using System;
using System.Runtime.Serialization;
using System.Xml.Linq;
using NCMIS.ObjectModel.MetaData;

namespace NCMIS.ServiceModel.Syndication
{
    /// <summary>
    /// Definitions for Atom children entries  
    /// </summary>
    [DataContract(Name = "children", Namespace = CmisNs.Atom)]
    public class CmisChildren
    {
        [DataMember(Name = "author", Order = 1)]
        public CmisAuthor Author
        {
            get;
            set;
        }

        [DataMember(Name = "id", Order = 2)]
        public string Id
        {
            get;
            set;
        }

        [IgnoreDataMember]
        public string SelfLink
        {
            get;
            set;
        }

        [DataMember(Name = "title", Order = 4)]
        public string Title
        {
            get;
            set;
        }

        [DataMember(Name = "updated", Order = 5)]
        public string Updated
        {
            get;
            set;
        }

        [DataMember(Name = "entry", Order = 6)]
        public CmisEntry Entry
        {
            get;
            set;
        }

        /// <summary>
        /// Returns a <see cref="System.Xml.Linq.XElement"/> RestAtom representation of this instance.
        /// </summary>
        /// <returns>A <see cref="System.Xml.Linq.XElement"/> object representation.</returns>
        public XElement ToXElement()
        {
            return null;
        }
    }
}
